package com.zhuyp.spring.boot.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.zhuyp.spring.boot.entity.User;
import com.zhuyp.spring.boot.service.UserService;
import com.zhuyp.spring.boot.utils.APIResultWithData;

@RestController
@RequestMapping("user")
public class Controller {
	
	@Autowired
	private UserService userService;
	
	@RequestMapping("selectUserList")
	public APIResultWithData selectUserList(User user){
		return APIResultWithData.returnDate(userService.selectByT(user));
	}

}
